docker run \
  --name nacos1 \
  --restart=always \
  -e MODE=cluster \
  -e PREFER_HOST_MODE=ip \
    # NACOS_SERVERS需要填写集群各个节点的IP和端口，多个IP用逗号隔开
  -e NACOS_SERVERS="" \
  -e SPRING_DATASOURCE_PLATFORM=mysql \
  -e MYSQL_SERVICE_HOST=10.6.123.77 \
  -e MYSQL_SERVICE_DB_NAME=nacos \
  -e MYSQL_SERVICE_PORT=3306 \
  -e MYSQL_SERVICE_USER=nacos \
  -e MYSQL_SERVICE_PASSWORD=d41d8cd98f00b204 \
  -e JVM_XMS=256m \
  -e JVM_XMX=256m \
  -e JVM_XMN=128m \
  -e JVM_MS=128m \
  -e JVM_MMS=128m \
  -v /data/nacos/config/application.properties:/home/nacos/conf/application.properties \
  -v /data/nacos/config/cluster.conf:/home/nacos/conf/cluster.conf \
  -v /data/nacos/logs/nacos1/nacos.log:/home/nacos/logs/nacos.log \
  -p 8848:8848 \
  -p 7848:7848 \
  -p 9848:9848 \
  -p 9849:9849 \
  -d nacos/nacos-server:v2.3.2;





  docker run \
    --name nacos2 \
    --restart=always \
    -e MODE=cluster \
    -e PREFER_HOST_MODE=ip \
    # NACOS_SERVERS需要填写集群各个节点的IP和端口，多个IP用逗号隔开
    -e NACOS_SERVERS="" \
    -e SPRING_DATASOURCE_PLATFORM=mysql \
    -e MYSQL_SERVICE_HOST=10.6.123.77 \
    -e MYSQL_SERVICE_DB_NAME=nacos \
    -e MYSQL_SERVICE_PORT=3306 \
    -e MYSQL_SERVICE_USER=nacos \
    -e MYSQL_SERVICE_PASSWORD=d41d8cd98f00b204 \
    -e JVM_XMS=256m \
    -e JVM_XMX=256m \
    -e JVM_XMN=128m \
    -e JVM_MS=128m \
    -e JVM_MMS=128m \
    -v /data/nacos/config/application.properties:/home/nacos/conf/application.properties \
    -v /data/nacos/config/cluster.conf:/home/nacos/conf/cluster.conf \
    -v /data/nacos/logs/nacos2/nacos.log:/home/nacos/logs/nacos.log \
    -p 8845:8848 \
    -p 7845:7848 \
    -p 9845:9848 \
    -p 9845:9849 \
    -d nacos/nacos-server:v2.3.2;





    docker run \
      --name nacos3 \
      --restart=always \
      -e MODE=cluster \
      -e PREFER_HOST_MODE=ip \
      # NACOS_SERVERS需要填写集群各个节点的IP和端口，多个IP用逗号隔开
      -e NACOS_SERVERS="" \
      -e SPRING_DATASOURCE_PLATFORM=mysql \
      -e MYSQL_SERVICE_HOST=10.6.123.77 \
      -e MYSQL_SERVICE_DB_NAME=nacos \
      -e MYSQL_SERVICE_PORT=3306 \
      -e MYSQL_SERVICE_USER=nacos \
      -e MYSQL_SERVICE_PASSWORD=d41d8cd98f00b204 \
      -e JVM_XMS=256m \
      -e JVM_XMX=256m \
      -e JVM_XMN=128m \
      -e JVM_MS=128m \
      -e JVM_MMS=128m \
      -v /data/nacos/config/application.properties:/home/nacos/conf/application.properties \
      -v /data/nacos/config/cluster.conf:/home/nacos/conf/cluster.conf \
      -v /data/nacos/logs/nacos3/nacos.log:/home/nacos/logs/nacos.log \
      -p 8848:8848 \
      -p 7848:7848 \
      -p 9848:9848 \
      -p 9849:9849 \
      -d nacos/nacos-server:v2.3.2;
